(function($){"use strict";var win=$(window);win.on('load',function(){$('#preloader').delay(350).fadeOut('slow');$('body').delay(350).css({'overflow':'visible'})}) let rtl_setting=$('body').hasClass("rtl")?!0:!1;$("[data-background]").each(function(){$(this).css("background-image","url("+$(this).attr("data-background")+")")}) $("[data-bg-color]").each(function(){$(this).css("background-color",$(this).attr("data-bg-color"))}) $("[data-top-space]").each(function(){$(this).css("padding-top",$(this).attr("data-top-space"))}) $('#mobile-menu').meanmenu({meanMenuContainer:'.mobile-menu',meanScreenWidth:"991"});$('.main-menu nav > ul > li').slice(-4).addClass('menu-last');$('.side-toggle').on('click',function(){$('.side-info').addClass('info-open');$('.offcanvas-overlay').addClass('overlay-open')}) $('.side-info-close,.offcanvas-overlay').on('click',function(){$('.side-info').removeClass('info-open');$('.offcanvas-overlay').removeClass('overlay-open')}) win.on('scroll',function(){var scroll=win.scrollTop();if(scroll<60){$(".header-sticky").removeClass("sticky-menu")}else{$(".header-sticky").addClass("sticky-menu")}});function heroActive(){$("[data-background]").each(function(){$(this).css("background-image","url("+$(this).attr("data-background")+")")}) $("[data-bg-color]").each(function(){$(this).css("background-color",$(this).attr("data-bg-color"))}) $("[data-top-space]").each(function(){$(this).css("padding-top",$(this).attr("data-top-space"))})} $('.popup-image').magnificPopup({type:'image',gallery:{enabled:!0}});$('.popup-video').magnificPopup({type:'iframe'});$(".footer__widget select,.widget select,.post-text select").niceSelect();$('.portfolio-area').imagesLoaded(function(){var $grid=$('.aportfolio-active').isotope({itemSelector:'.grid-item',percentPosition:!0,masonry:{columnWidth:1,}});$('.aportfolio-menu').on('click','button',function(){var filterValue=$(this).attr('data-filter');$grid.isotope({filter:filterValue})})});$('.aportfolio-menu button').on('click',function(event){$(this).siblings('.active').removeClass('active');$(this).addClass('active');event.preventDefault()});$('.venobox').venobox();function smoothSctollTop(){$('.smooth-scroll a').on('click',function(event){var target=$(this.getAttribute('href'));if(target.length){event.preventDefault();$('html, body').stop().animate({scrollTop:target.offset().top-0},1500)}})} smoothSctollTop();win.on('scroll',function(event){if($(this).scrollTop()>600){$('#scroll').fadeIn(200)}else{$('#scroll').fadeOut(200)}});$('#scroll').on('click',function(event){event.preventDefault();$('html, body').animate({scrollTop:0,},1500)});var wow=new WOW({mobile:!1,});wow.init();function mainSlider(){$("[data-background]").each(function(){$(this).css("background-image","url("+$(this).attr("data-background")+")")}) if(jQuery(".slider-active").length>0){let sliderActive1='.slider-active';let sliderInit1=new Swiper(sliderActive1,{slidesPerView:1,slidesPerColumn:1,rtl:rtl_setting,paginationClickable:!0,loop:!1,effect:'fade',autoplay:{delay:5000,},pagination:{el:'.slider-paginations',clickable:!0,},navigation:{nextEl:'.swiper-button-next',prevEl:'.swiper-button-prev',},a11y:!1});function animated_swiper(selector,init){let animated=function animated(){$(selector+' [data-animation]').each(function(){let anim=$(this).data('animation');let delay=$(this).data('delay');let duration=$(this).data('duration');$(this).removeClass('anim'+anim).addClass(anim+' animated').css({webkitAnimationDelay:delay,animationDelay:delay,webkitAnimationDuration:duration,animationDuration:duration}).one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend',function(){$(this).removeClass(anim+' animated')})})};animated();init.on('slideChange',function(){$(sliderActive1+' [data-animation]').removeClass('animated')});init.on('slideChange',animated)} animated_swiper(sliderActive1,sliderInit1)}} function memberActive(){if(jQuery(".team-active-3").length>0){let swiperteam=new Swiper('.team-active-3',{slidesPerView:1,spaceBetween:30,rtl:rtl_setting,loop:!0,infinite:!1,autoplay:{delay:5000,},pagination:{el:'.swiper-pagination',clickable:!0,},navigation:{nextEl:'.swiper-button-next',prevEl:'.swiper-button-prev',},scrollbar:{el:'.swiper-scrollbar',dynamicBullets:!0,},breakpoints:{480:{slidesPerView:2,},768:{slidesPerView:3,},1200:{slidesPerView:2,},1400:{slidesPerView:3,},}})}} function galleryActive(){if(jQuery(".gallery-active").length>0){let gallery=new Swiper('.gallery-active',{slidesPerView:1,spaceBetween:30,rtl:rtl_setting,loop:!1,pagination:{el:'.swiper-pagination',clickable:!0,},navigation:{nextEl:'.swiper-button-next',prevEl:'.swiper-button-prev',},scrollbar:{el:'.swiper-scrollbar',dynamicBullets:!0,},breakpoints:{480:{slidesPerView:2,},768:{slidesPerView:3,},1200:{slidesPerView:4,},}})}} function testimonialActive(){if(jQuery(".atestimonial-active").length>0){let atestimonial1=new Swiper('.atestimonial-active',{slidesPerView:1,spaceBetween:30,rtl:rtl_setting,loop:!0,pagination:{el:'.swiper-pagination',clickable:!0,},navigation:{nextEl:'.swiper-button-next',prevEl:'.swiper-button-prev',},scrollbar:{el:'.swiper-scrollbar',},})} if(jQuery(".testimonial-active-2").length>0){let testimonial2=new Swiper('.testimonial-active-2',{slidesPerView:1,spaceBetween:30,rtl:rtl_setting,loop:!0,pagination:{el:'.swiper-pagination',clickable:!0,},navigation:{nextEl:'.swiper-button-next',prevEl:'.swiper-button-prev',},scrollbar:{el:'.swiper-scrollbar',dynamicBullets:!0,},breakpoints:{640:{slidesPerView:1,},768:{slidesPerView:1,},1024:{slidesPerView:1,},}})} if(jQuery(".testimonial-active-3").length>0){let swipertest=new Swiper('.testimonial-active-3',{slidesPerView:1,spaceBetween:30,rtl:rtl_setting,loop:!1,infinite:!1,pagination:{el:'.swiper-pagination2',clickable:!0,},navigation:{nextEl:'.swiper-button-next',prevEl:'.swiper-button-prev',},scrollbar:{el:'.swiper-scrollbar',dynamicBullets:!0,},breakpoints:{480:{slidesPerView:1,},768:{slidesPerView:2,},1200:{slidesPerView:3,},1400:{slidesPerView:3,},}})}} if(jQuery(".ablog__img--active").length>0){let ablogimgactive=new Swiper('.ablog__img--active',{slidesPerView:1,spaceBetween:30,rtl:rtl_setting,loop:!0,pagination:{el:'.swiper-pagination',clickable:!0,},navigation:{nextEl:'.swiper-button-next',prevEl:'.swiper-button-prev',},scrollbar:{el:'.swiper-scrollbar',dynamicBullets:!0,},breakpoints:{640:{slidesPerView:1,},768:{slidesPerView:1,},1024:{slidesPerView:1,},}})} function brandActive(){if(jQuery(".brand-active").length>0){let brand=new Swiper('.brand-active',{slidesPerView:2,spaceBetween:30,rtl:rtl_setting,loop:!0,autoplay:{delay:5000,},pagination:{el:'.swiper-pagination',clickable:!0,},navigation:{nextEl:'.swiper-button-next',prevEl:'.swiper-button-prev',},scrollbar:{el:'.swiper-scrollbar',},breakpoints:{550:{slidesPerView:3,},768:{slidesPerView:4,},1200:{slidesPerView:5,},}})}} $(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/slider.default',mainSlider);elementorFrontend.hooks.addAction('frontend/element_ready/hero.default',heroActive);elementorFrontend.hooks.addAction('frontend/element_ready/brand.default',brandActive);elementorFrontend.hooks.addAction('frontend/element_ready/member_slider.default',memberActive);elementorFrontend.hooks.addAction('frontend/element_ready/testimonial_slider.default',testimonialActive);elementorFrontend.hooks.addAction('frontend/element_ready/project_slider.default',galleryActive)})})(jQuery)